# -*- coding: utf-8 -*-
from django.conf.urls import url
from . import views
from django.contrib.auth.decorators import login_required, permission_required
from django.views.generic import TemplateView

urlpatterns = [
    url(r'^waybill/(?P<id>[-\w]+)/$', views.waybill, name='waybill'),
    url(r'^report/', views.report, name='report'),
    url(r'^contact-us/', views.ContactFormView.as_view(), name='contact-us'),
    url(r'^about1/', views.GreetingView.as_view(greeting="G'day")),
    url(r'^about2/', login_required(TemplateView.as_view(template_name="secret.html"))),
    url(r'^vote/', permission_required('polls.can_vote')(views.VoteView.as_view())),
]
